package com.yuw.homework04;

public class Company {
    // 属性
    private ColaEmployee[] employees;
    //private int currentMonth;

    // 行为

    public Company() {
    }

    public Company(ColaEmployee[] employees) {
        this.employees = employees;
    }

    public ColaEmployee[] getEmployees() {
        return employees;
    }

    public void setEmployees(ColaEmployee[] employees) {
        this.employees = employees;
    }

    public void printEmplyeeSalary(int currentMonth) {
        // 打印工资
        if (employees != null && employees.length > 0) {
            for (ColaEmployee e : employees) {
                e.pirntSalary(currentMonth);
            }
        } else {
            System.out.println("没有可以打印工资的员工！");
        }
    }

}
